@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/factory/factory_edit.js"]}){
<form id="factoryForm" lay-filter="factoryForm" class="layui-form model-form">
    <input name="id" type="hidden"/>、
    <div class="layui-form-item">
        <#pic boxid="picBox" name="主图"  tip="请上传小于500kb，宽：690px,高：518px 的图片"  hiddenInput="headpic" uploadButton="uploadPic" />
    </div>
    <div class="layui-form-item">

        <label class="layui-form-label">农场名<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="name" name="name" placeholder="请输入农场名" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">排序权重<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="weigh" name="weigh" placeholder="值越小，越靠前" type="number" min="1" max="99999999" class="layui-input" lay-verify="required" required/>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">展示状态<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input type="checkbox" id="status" name="status"  lay-filter="status" value="1" lay-skin="switch"  lay-text="是|否"   />
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">新增时间<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="createTime" name="createTime" placeholder="请输入新增时间" type="text" class="layui-input" disabled />
        </div>
    </div>
    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>
</form>
@}